package org.java.order.enums;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @author WHQ
 * @version 1.0
 * @date 2022-3-20 0020 下午 2:48
 */
@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum OrderEnum {


    ORDER_PAY_ERROR(403,"订单提交失败"),
    INVENTORY_INSUFFICIENT(419,"库存不足"),
    ORDER_UPDATE_ERROR(405,"订单修改失败");
    private int code;//异常的状态码
    private String msg;//异常的消息
}
